# Contributor: Jann - Ove Risvik <jann.ove@usaklig.com>
# Maintainer:
pkgname=libibmad
pkgver=1.3.13
pkgrel=2
pkgdesc="Generic InfiniBand MAD handling library"
options="!check" # No testsuite
url="https://www.openfabrics.org/downloads/management/"
arch="x86 x86_64 ppc64le"
license="GPL-2.0-only OR BSD-2-Clause"
depends_dev="libibumad-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://www.openfabrics.org/downloads/management/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="429fb0cb35d2e01f0116f832114df4f3eaca7bcba6698a9a5911e32063f8a8b141c3c01e2ce92322165bb34842347d035b008e1f87f47883668a7194fab3bcd5  libibmad-1.3.13.tar.gz"
